<!DOCTYPE html>
<html lang="en">
<link>

    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Change_Pwd管理</title>
    <meta name="description" content="Change_Pwd管理">
    <meta name="keywords" content="Change_Pwd管理">
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">

    <!-- 引入样式/组件 -->
    <link rel="icon" href="../img/favicon.ico">
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <link rel="stylesheet" href="../plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../css/elementui.css"/>
    <script src="../js/vue.js"></script>
    <script src="../js/elementui.js"></script>
    <script src="../js/axios.js"></script>
    <script src="../js/util.js"></script>

<body class="hold-transition">

<div id="app">

    <div class="content-header">
        <h1>Change_Pwd管理<small>Change_Pwd管理</small></h1>
        <el-breadcrumb separator-class="el-icon-arrow-right" class="breadcrumb">
            <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
            <el-breadcrumb-item>Change_Pwd管理</el-breadcrumb-item>
            <el-breadcrumb-item>Change_Pwd管理</el-breadcrumb-item>
        </el-breadcrumb>
    </div>

    <h1><font color="blue">修改密码页面</font></h1>

    <el-form :inline="true">
        <el-form-item label="新密码">
            <el-input v-model="pwd" placeholder="新密码">
            </el-input>
        </el-form-item>
        <el-button type="primary" @click="save()">确认</el-button>
    </el-form>

</div>

<script>
    new Vue({
        el: "#app",
        data:{
            pwd:""
        },
        created(){
        },
        methods:{
            save(){
                axios.get(`/login/changePwd.do?pwd=`+this.pwd).then( res=>{
                        alert("操作成功");
                        location.href = "/login.html"
                })
            }
        }
    })
</script>

</body>
</html>